import axios from '@/api/fetch';
// import * as types from './types';
import SERVER from '@/api/server';

// 查询二手车回访分派信息
export const getUsedCarVisitInfo = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/customerRepair/usedCarVisit/getUsedCarVisitInfo`, { params });

// 查询二手车回访录入信息
export const getVisitInfo = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/activityVisitResult/getActivityEntryVisitResultNew`, { params });

// 查询二手车回访结果信息
export const getVisitResultQuery = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/entryVisitResult/getUsedCarVisitResultQuery`, { params });

// 问卷名称下拉框
export const getQuestionnaireList = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/entryVisitResult/getQuestionnaireList`, { params });

// 操作员、录入人
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);

// 售后回访-任务分派
export const taskAssignment = params => axios.post(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/entryVisitResult/taskAssignment`, params);
